<%@page import="sdfi.lee.Properties.ReadXMLFromString"%>
<%@page import="sdfi.lee.DAO.FileDAO"%>
<%@page import="sdfi.lee.Newpj.Entity.Achievement"%>
<%@page import="sdfi.lee.Newpj.DAO.AchievementDAO"%>
<%@page import="sdfi.lee.DAO.DrugDAO"%>
<%@page import="sdfi.lee.Entity.Drug"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="../css/index.css" />
<link rel="stylesheet" href="../css/level.css" />
<script type="text/javascript" src="../js/jquery-1.6.js"></script>
<script type="text/javascript" src="../js/index.js"></script>
<title>国家新药创制平台（山东）-区内成果</title>
</head>
<body>
<%
	String pg=request.getParameter("pg");
	String path=request.getParameter("path");
	String id=request.getParameter("id");
	String ct=new FileDAO().getRollNoticeByFilepath(path);
	ReadXMLFromString rxfs=new ReadXMLFromString();
	rxfs.setSource("<root>"+ct+"</root>");
	java.util.List<Achievement> lista=new AchievementDAO().getAchivement_qu(id,5,1);
	request.setAttribute("lista",lista);
%>

	<div class="divhead"> 当前位置：<a href="<c:url value='/index.jsp'/>" >首页</a>&nbsp;&gt;&nbsp;
	<a href="<c:url value='/achievement/achilist.jsp?pg=1'/>">业界成果
	</a>&nbsp;&gt;&nbsp;正文
	</div>
    <div id="divshowcontain">
    	<div id="divleft">
        	<c:choose>
        		<c:when test="${fn:contains(param.path,'journal') }">
        		<div class="div_content_title">
        		<%=rxfs.readerValueByNode("/root/title") %>(期刊)
        		</div>
        	<div class="div_content_fenge1">&nbsp;</div>
        	<div class="div_content_date">&nbsp;</div>
        	<div class="div_content_fenge2"></div>
        	<div class="div_detail">
        		<table style="width:100%;">
						<tr>
							<td>摘要：<%=rxfs.readerValueByNode("/root/abstracts") %>&nbsp;&nbsp;&nbsp;
								<a href="<%=rxfs.readerValueByNode("/root/source") %>" target="_blank"><font color="red">查看来源</font></a>
							</td>
						</tr>
						<tr>
							<td>时间：<%=rxfs.readerValueByNode("/root/period") %>
							</td>
						</tr>
						<tr>
							<td>出版杂志：<%=rxfs.readerValueByNode("/root/journal") %>
							</td>
						</tr>
						<tr>
					
					
					</table>
        	</div>
        		</c:when>
        		<c:otherwise>
        			<c:choose>
        			<c:when test="${fn:contains(param.path,'patent') }">
  			 <div class="div_content_title">
        		<%=rxfs.readerValueByNode("/root/name") %>(专利)
        	</div>
        	<div class="div_content_fenge1">&nbsp;</div>
        	<div class="div_content_date"></div>
        	<div class="div_content_fenge2"></div>
   			<div class="div_detail">
   				<table style="width:100%;">
					<tr>
						<td>
							专利名：<%=rxfs.readerValueByNode("/root/name") %>
							<a href="<%=rxfs.readerValueByNode("/root/sourceUrl") %>" target="_blank"><font color="red">查看来源</font></a>
						</td>
					</tr>
					<tr>
						<td>
							专利号:<%=rxfs.readerValueByNode("/root/applyNum") %>
						</td>
					</tr>
					<tr>
						<td>
							专利类别：<%=rxfs.readerValueByNode("/root/categoryNum") %>
						</td>
					</tr>
					<tr>
						<td>
							作者：<%=rxfs.readerValueByNode("/root/designer") %>
						</td>
					</tr>
					<tr>
						<td>
							单位：<%=rxfs.readerValueByNode("/root/address") %>
						</td>
					</tr>
					<tr>
						<td>
							摘要：<%=rxfs.readerValueByNode("/root/abstracts") %> &nbsp;&nbsp;&nbsp;
						</td>
					</tr>
				</table>
   			</div>
   					</c:when>
        			<c:otherwise>
        				<div class="div_content_title"><%=rxfs.readerValueByNode("/root/title") %></div>
			<div class="div_content_fenge1"></div>
			<div class="div_content_date"><%=rxfs.readerValueByNode("root/modifytime") %></div>
			<div class="div_content_fenge2">&nbsp;</div>
				<div class="div_detail">
					<table style="width:100%;">
						<tr>
							<td>摘要：<%=rxfs.readerValueByNode("/root/body") %>&nbsp;&nbsp;&nbsp;
								<a href="<%=rxfs.readerValueByNode("/root/source") %>" target="_blank"><font color="red">查看来源</font></a>
							</td>
						</tr>
						<tr>
							<td>时间：<%=rxfs.readerValueByNode("/root/modifytime") %>
							</td>
						</tr>
						<tr>
					
					
					</table>
				</div>
        			</c:otherwise>
        			</c:choose>
        		</c:otherwise>
        	</c:choose>
             <div style="clear:left"></div>
        </div>
        <div  id="divmid"></div>
        <div id="divright">
        <c:choose>
        
        <c:when test="${fn:length(requestScope.lista)>0}">
       		<c:forEach items="${requestScope.lista}" var="ache">
			<div class="div_news_item">
				<c:choose>
					<c:when test="${ache.type==0}">
						<c:url var="acheurl" value="/achievement/achidetail.jsp?id=${ache.id}&pg=${param.pg+1}"></c:url>
					</c:when>
					<c:otherwise>
					<c:url var="acheurl" value="/achievement/rachidetail.jsp?path=${ache.path}&pg=${param.pg+1}"></c:url>
					</c:otherwise>
				</c:choose>
            	<a href="${acheurl}" title="${ache.name}">${ache.name }</a>
            </div>
            </c:forEach>
             </c:when>
            <c:otherwise>
            	<h3>暂无相关信息</h3>
            </c:otherwise>
            </c:choose>
        </div>
      <div style="clear:left"></div>
    </div>

</body>
</html>